﻿using AspNet.Identity.Dapper;
using AspNet.Identity.Dapper.Db;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DapperAppTest
{
    class Program
    {
        static void Main(string[] args)
        {
            var db = new DbManager("");
            var user = new UserTable<IdentityUser>(db);
            //var result = user.Insert(new IdentityUser
            //{
            //    Id = Guid.NewGuid(),
            //    Email = "eric01@natr.com",
            //    EmailConfirmed = false,
            //    PasswordHash = "AC2/h22k77mzCsTPMhPDhYZszk0tC2Km37ktA5SwFeMUaPHXuL1GUKdxXhsDh68OJw==",
            //    SecurityStamp = "e1b9d9a9-f2e7-4c3d-a6f2-0e07536bc880",
            //    PhoneNumber = "",
            //    PhoneNumberConfirmed = false,
            //    TwoFactorEnabled=false,
            //    LockoutEndDateUtc=null,
            //    LockoutEnabled=false,
            //    AccessFailedCount=0,
            //    UserName="erich@natr.com"
            //});
            //Console.Read();

            var id = user.GetUserIdByName("eric01@natr.com");
            Console.WriteLine(id);

            Console.Read();
        }
    }
}
